<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="UTF-8"/>
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <title>overflow:hidden,height:0隐藏失效的情形</title>
        <style>
            .hide{
                overflow: hidden;
                height: 0;
            }
            .bg-red{
                background-color: #f00;
            }
        </style>
    </head>
    <body>
        <div class="hide">
            <img src="http://image.zhangxinxu.com/image/study/s/s256/mm1.jpg" alt="" />
        </div>
        <div class="hide">
            <img style="position: absolute;" src="http://image.zhangxinxu.com/image/study/s/s256/mm1.jpg" alt="" />
        </div>
    </body>
</html>